﻿
using System.Data;
using DataSync.Properties;

namespace DataSync.Models.Staff
{
    public class Staff
    {
        public static DataSet GenearteStaff()
        {
            var dataTable = new DataTable("StaffDataTable");
            var dataColumn = new DataColumn(Resources.StaffId, typeof(int));
            dataTable.Columns.Add(dataColumn);

            dataColumn = new DataColumn(Resources.StaffName);
            dataTable.Columns.Add(dataColumn);

            dataColumn = new DataColumn(Resources.StaffNameKhmer);
            dataTable.Columns.Add(dataColumn);

            dataColumn = new DataColumn(Resources.StaffContractType);
            dataTable.Columns.Add(dataColumn);

            dataColumn = new DataColumn(Resources.StaffEmploymentStatus);
            dataTable.Columns.Add(dataColumn);

            dataColumn = new DataColumn(Resources.StaffEmploymentType, typeof(int));
            dataTable.Columns.Add(dataColumn);

            dataColumn = new DataColumn(Resources.StaffPhoto);
            dataTable.Columns.Add(dataColumn);

            dataColumn = new DataColumn(Resources.StaffPosition, typeof(int));
            dataTable.Columns.Add(dataColumn);

            dataColumn = new DataColumn("position_title");            
            dataTable.Columns.Add(dataColumn);

            dataColumn = new DataColumn(Resources.StaffSex);
            dataTable.Columns.Add(dataColumn);
            
            dataColumn = new DataColumn(Resources.StaffShift, typeof(int));
            dataTable.Columns.Add(dataColumn);
            
            dataColumn = new DataColumn(Resources.StaffTitle);
            dataTable.Columns.Add(dataColumn);

            var dataSet = new DataSet("StaffDataSet");
            dataSet.Tables.Add(dataTable);

            return dataSet;
        }
    }
}